let _axios = axios.create({
    baseUrl: '${contextPath}',
    timout: 20000,
    withCredentials: true
})
_axios.interceptors.request.use(req => {
    return req
}, err => {
    return Promise.reject(err)
})
_axios.interceptors.response.use((res) => {
    if(res) {
        if(res.data.Code === 430 || res.data.Code === 401) {
            toLogin()
        }
        return res.data
    } else {
        return Promise.reject(res)
    }
}, err => {
    return Promise.reject(err)
})